# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit webapp

DESCRIPTION="Layer 7 network packet shaping."
HOMEPAGE="http://www.mastershaper.org/"
S="${WORKDIR}/MasterShaper-${PV}"
SRC_URI="http://www.mastershaper.org/${PN}_${PV}.tar.bz2"
LICENSE="GPL-2"
IUSE="doc"
KEYWORDS="~x86 ~amd64"

RDEPEND="net-www/apache"

DEPEND="${RDEPEND}"


src_install(){
	webapp_src_preinst

	local docs="LICENCE README" docs

	dodoc ${docs}
	for doc in ${docs} INSTALL ; do
		rm -f "${doc}"
	done
	
	cp -pPR htdocs/* ${D}/${MY_HTDOCSDIR}
	cp htdocs/.htaccess ${D}/${MY_HTDOCSDIR}
	dobin tools/*

	#webapp_serverowned "${MY_HTDOCSDIR}/temp"
	webapp_configfile "${MY_HTDOCSDIR}/setup/index.php"

	webapp_src_install
}
